package com.intellij.action.git;

import com.jcraft.jsch.JSch;
import com.jcraft.jsch.JSchException;
import org.eclipse.jgit.errors.TransportException;
import org.eclipse.jgit.transport.CredentialsProvider;
import org.eclipse.jgit.transport.RemoteSession;
import org.eclipse.jgit.transport.SshSessionFactory;
import org.eclipse.jgit.transport.URIish;
import org.eclipse.jgit.util.FS;

/**
 * @Description TODO
 * @Author Daw
 * @Date 2021-03-02 11:21
 * @Version 1.0
 **/
public class JschConfigSessionFactory extends SshSessionFactory {
    @Override
    public RemoteSession getSession(URIish urIish, CredentialsProvider credentialsProvider, FS fs, int i) throws TransportException {
        return null;
    }

    @Override
    public String getType() {
        return null;
    }

//    protected JSch createDefaultJSch(FS fs ) throws JSchException {
//        JSch defaultJSch = super.createDefaultJSch( fs );
//        defaultJSch.addIdentity( "/path/to/private_key" );
//        return defaultJSch;
//    }

}
